home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / diverses / cexpress / screen / getshape.asm < prev    next >
Encoding:
Assembly Source File  |  1989-05-03  |  526 b   |  23 lines

  1. ;void  get_cursor_shape();
  2.  
  3.     EXTRN  _memory_model:byte
  4.     EXTRN  _start_line:byte
  5.     EXTRN  _stop_line:byte
  6.  
  7. _TEXT    SEGMENT BYTE PUBLIC 'CODE'
  8.     ASSUME CS:_TEXT
  9.     PUBLIC _get_cursor_shape
  10. _get_cursor_shape proc near
  11.     mov  ah,3        ;func to read cursor pos
  12.     mov  bh,0        ;page number
  13.     int  10h        ;read position and shape
  14.     mov  _start_line,ch    ;set start_line
  15.     mov  _stop_line,cl    ;set stop_line
  16.     cmp  _memory_model,0    ;quit
  17.     jle  quit        ;
  18.     db   0CBh        ;RET far
  19. quit:    ret            ;RET near
  20. _get_cursor_shape endp
  21. _TEXT    ENDS
  22.     END
  23.